package io.nutz.nutzsite.module.javaee.models;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;
					
/**
 * 栏目、菜单、版块表 jmenu
 * 
 * @author lrw
 * @date 2020-03-07
 */
@Table("jmenu")
public class Jmenu implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Name
		@Column("id")
	@Comment("体现层级，如三级010310")
	private String id;

			/** 父 */
	@Column("pid")
	@Comment("父")
	private String pid;

			/** 章节名称 */
	@Column("name")
	@Comment("章节名称")
	private String name;

			/** 教学内容 */
	@Column("content")
	@Comment("教学内容")
	private String content;

			/** 权限标识 */
	@Column("permission")
	@Comment("权限标识")
	private String permission;

	
	public void setId(String id) 
	{
		this.id = id;
	}

	public String getId() 
	{
		return id;
	}

	public void setPid(String pid) 
	{
		this.pid = pid;
	}

	public String getPid() 
	{
		return pid;
	}

	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}

	public void setContent(String content) 
	{
		this.content = content;
	}

	public String getContent() 
	{
		return content;
	}

	public void setPermission(String permission) 
	{
		this.permission = permission;
	}

	public String getPermission() 
	{
		return permission;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("name", getName())
            .append("content", getContent())
            .append("permission", getPermission())
            .toString();
    }
}
